﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Details.Master" Inherits="System.Web.Mvc.ViewPage<TVXD23.Web.Models.ViewModel.PressViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    <%:Model.PressCategoryName %>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <%foreach (var item in Model.PressList)
      {%>
    <img src="/content/green-star.gif" />
    <h4>
        <%=Html.PressTitleLinkHtml(item.Title,item.PressId,"vi") %></h4>
    <%:item.DateCreate.Value.ToShortDateString() %>
    <p>
        <%if (item.ImagePath != null)
          {%>
        <img src="<%:item.ImagePath %>" alt="" width="180" height="140" />
        <%
}%>
        <%=item.Description %>
        <%=Html.ReadMorePressLinkHtml(item.Title,item.PressId,"vi") %>
    </p>
    <br />
    <br />
    <br />
    <%
    }%>
    <br />
    <h3>
        Trang :
        <%=Html.Pager(5,Model.CurrentPage,Model.TotalItem,new{lang="vi",danhmucId=Model.PressCategoryId}) %></h3>
</asp:Content>
